# name : proc freq noninferiority relrisk
# key : freq.noninf.relrisk
# contributor: Shuguang Sun
# --
ods output PdiffNoninf = ${9:dtout};
proc freq data = ${1:dtin};
  table ${2:trt} * ${3:resp} / relrisk(noninf margin = ${4:margin} method = ${5:$$(yas-choose-value '("FM" "SCORE" "LR" "LIKELIHOODRATIO" "WALD" "WALDMODIFIED"))} CL = ${6:$$(yas-choose-value '("EXACT" "LR" "SCORE" "WALD" "WALDMODIFIED"))})
  alpha = ${7:0.05} nopercent nocol nocum;
  weight ${8:wt};
run;
